<?php
if(isset($message)){
?>
<div class="alert error">
	<p><?php echo $message; ?></p>
</div>
<?php
} 
?>
<section class="title">
	<h4><?php echo lang('stoepje_voucher_setting_title'); ?></h4>
</section>

<section class="item">
	<?php echo form_open_multipart(uri_string(), 'class="crud" id="setting"'); ?>
	<div class="form_inputs">
		<ul>
			<li class="even">
				<label for="number_of_winner"><?php echo lang('stoepje_voucher_setting_active');?> <span>*</span></label>
				<div class="input"><?php echo  form_checkbox('active_setting', 1, $activeSetting?$activeSetting->value:""); ?><?php echo lang('stoepje_voucher_setting_active');?></div>
			</li>
			<li class="even">
				<label for="name"><?php echo lang('stoepje_voucher_setting_from');?> <span>*</span></label>
				<div class="input">
				<?php
					echo  form_dropdown('from_hour', $hourOptions, $fromHour, 'class="setting_time"');
				?>
				<?php
					echo  form_dropdown('from_minute', $minuteOptions, $fromMinute, 'class="setting_time"');
				?>
				<?php
					echo  form_dropdown('from_period', $periodOptions, $fromPeriod, 'class="setting_time"');
				?>
				</div>
			</li>
			<li class="even">
				<label for="name"><?php echo lang('stoepje_voucher_setting_to');?> <span>*</span></label>
				<div class="input">
				<?php
					echo  form_dropdown('to_hour', $hourOptions, $toHour, 'class="setting_time"');
				?>
				<?php
					echo  form_dropdown('to_minute', $minuteOptions, $toMinute, 'class="setting_time"');
				?>
				<?php
					echo  form_dropdown('to_period', $periodOptions, $toPeriod, 'class="setting_time"');
				?>
				</div>
			</li>
			<li class="even">
				<label for="number_of_winner"><?php echo lang('stoepje_voucher_number_of_winner');?> <span>*</span></label>
				<div class="input"><?php echo  form_input('number_of_winner', $numberOfWinner?$numberOfWinner->value:""); ?></div>
			</li>
		</ul>
	</div>
	<div><?php $this->load->view('admin/partials/buttons', array('buttons' => array('save', 'cancel') )); ?></div>
	<?php echo form_close(); ?>
</section>